package cn.edu.sdu.order.backend.service.impl;

import cn.edu.sdu.order.backend.dto.TestDTO;
import cn.edu.sdu.order.backend.service.TestService;
import cn.edu.sdu.order.backend.vo.TestVO;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * 描述：
 *
 * @author 李洪文
 * @date 2020-09-29
 */
@Service
public class TestServiceImpl implements TestService {

    @Override
    public TestVO hello(TestDTO testDTO) {
        TestVO testVO = new TestVO();
        BeanUtils.copyProperties(testDTO, testVO);
        testVO.setCreatedByDesc("John");
        return testVO;
    }
}
